/**
 * Created by 李柏霖
 * 2020/10/13 9:48
 */

package com.lbl.Utils;

import com.lbl.domain.Person;

import java.util.ArrayList;
import java.util.List;

public class Db {
    static List<Person> list = new ArrayList<Person>();
    ;

    public static List<Person> findAll() {
//        list.add(new Person(1,"李柏霖1",18,"湖南郴州"));
//        list.add(new Person(1,"李柏霖2",18,"湖南郴州"));
//        list.add(new Person(1,"李柏霖3",18,"湖南郴州"));
//        list.add(new Person(1,"李柏霖4",18,"湖南郴州"));
//        list.add(new Person(1,"李柏霖5",18,"湖南郴州"));
//        list.add(new Person(1,"李柏霖6",18,"湖南郴州"));
        return list;
    }

    public static List<Person> add(Person person) {
        list.add(person);
        return list;
    }


}
